package com.dailyblue.java;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
public class Person implements Serializable {
    private static final long serialVersionUID = 8888;
    private Integer id;
    private String name;
    private transient Character gender;
    private String birthday;
    private static String address;

    public Person(){
        System.out.println("1111111");
    }
    public Person(Integer id, String name, Character gender, String birthday, String address1) {
        System.out.println("22222222");
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        address = address1;
    }

    public String toString() {
        return "Person:{id:" + id + ",name:" + name + ",gender:" + gender + ",birthday:" + birthday + ",address:" + address + "}";
    }
}
